package com.qf.mapper;

import com.qf.pojo.Student;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StudentMapper {

    @Select("select * from student")
    List<Student> findAll();

    @Select("select * from student where id=#{id}")
    List<Student> findById(Integer id);

    @Update("update student set name=#{name},age=#{age},gender=#{gender} where id=#{id}")
    void update(Student stu);
}
